package org.ltc.alliance.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.ltc.alliance.constant.StatusConst;
import org.ltc.alliance.model.FavDomain;

import java.util.List;

@Mapper
public interface FavDao {

    List<FavDomain> getListByUid(@Param(("uid")) Integer uid, @Param("status") StatusConst.Fav status);

    FavDomain getFavByUidAndCid(@Param("uid") Integer uid, @Param("cid") Integer cid);

    StatusConst.Fav getStatusByUidAndCid(@Param("uid") Integer uid, @Param("cid") Integer cid);

    void saveFavInfo(FavDomain fav);

    void alterFavStatus(FavDomain fav);
}
